package com.ybxx.base.service.impl;

import java.util.List;

import com.ybxx.base.dao.FeesItemDao;
import com.ybxx.base.model.FeesItem;
import com.ybxx.base.service.FeesItemService;
import com.ybxx.core.command.QueryFilter;
import com.ybxx.core.dao.GenericDao;
import com.ybxx.core.service.impl.BaseServiceImpl;
import com.ybxx.core.web.paging.PagingBean;

public class FeesItemServiceImpl extends BaseServiceImpl<FeesItem> implements
		FeesItemService {
	private FeesItemDao feesItemDao;
	public FeesItemServiceImpl(FeesItemDao dao) {
		super(dao);
		this.feesItemDao=dao;
		// TODO Auto-generated constructor stub
	}
	public List<FeesItem> queryFeesItem(String cid) {
		String hql="from FeesItem fi left join fetch fi.feesType ft where fi.fees.community.cid='"+cid+"'";
		return feesItemDao.findByHql(hql, null);
	}

}
